home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Advisor 2000 October
/
Encyclopedia Britannica CD Multimedia Edition - Ecosystems.iso
/
Britannica
/
Ecosystem
/
MOUNTAIN
/
NAVBAR.JS
< prev
next >
Wrap
Text File
|
1999-03-05
|
10KB
|
188 lines
//<!--
var TableOffset;
var tID1, tID2, tID3;
var Quick=0;
NavBar = new Array(6);
for (i=0; i<6; i++) { NavBar[i] = new Array(5); }
NavBar[0][0] = new Image(); NavBar[0][0].src = "../main/80bg.gif";
NavBar[0][1] = new Image(); NavBar[0][1].src = "../main/80h.gif";
NavBar[0][2] = new Image(); NavBar[0][2].src = "../main/80c.gif";
NavBar[0][3] = "Go to the overview<br>of the ecosystem.";
NavBar[0][4] = 20;
NavBar[1][0] = new Image(); NavBar[1][0].src = "../main/57bg.gif";
NavBar[1][1] = new Image(); NavBar[1][1].src = "../main/57h.gif";
NavBar[1][2] = new Image(); NavBar[1][2].src = "../main/57c.gif";
NavBar[1][3] = "Two different categories<br>of mountain ecosystems.";
NavBar[1][4] = 100;
NavBar[2][0] = new Image(); NavBar[2][0].src = "../main/86bg.gif";
NavBar[2][1] = new Image(); NavBar[2][1].src = "../main/86h.gif";
NavBar[2][2] = new Image(); NavBar[2][2].src = "../main/86c.gif";
NavBar[2][3] = "The plants, animals, and other<br>biota of mountain ecosystems.";
NavBar[2][4] = 157;
NavBar[3][0] = new Image(); NavBar[3][0].src = "../main/102bg.gif";
NavBar[3][1] = new Image(); NavBar[3][1].src = "../main/102h.gif";
NavBar[3][2] = new Image(); NavBar[3][2].src = "../main/102c.gif";
NavBar[3][3] = "How mountain organisms interact with each other and with their environment.";
NavBar[3][4] = 243;
NavBar[4][0] = new Image(); NavBar[4][0].src = "../main/99bg.gif";
NavBar[4][1] = new Image(); NavBar[4][1].src = "../main/99h.gif";
NavBar[4][2] = new Image(); NavBar[4][2].src = "../main/99c.gif";
NavBar[4][3] = "Where mountain ecosystems occur<br>throughout the world.";
NavBar[4][4] = 345;
NavBar[5][0] = new Image(); NavBar[5][0].src = "../main/75bg.gif";
NavBar[5][1] = new Image(); NavBar[5][1].src = "../main/75h.gif";
NavBar[5][2] = new Image(); NavBar[5][2].src = "../main/75c.gif";
NavBar[5][3] = "In-depth discussion<br>of mountain ecosystems.";
NavBar[5][4] = 444;
function InitNavbar(index) {
for (i=0; i<document.all.length; i++) {
if (document.all[i].tagName=="TD") { break; }
}
TableOffset=i+1;
document.all["frmNavDrop"].NavDrop.selectedIndex = index;
document.all["protect"].style.visibility = "hidden";
}
function NavIn(object,index) {
clearTimeout(tID3);
object.style.color = "#FFFF00";
object.background = NavBar[index][1].src;
document.all["NavTip"].innerHTML = "<P CLASS='navtip'>"+NavBar[index][3]+"</P>";
document.all["NavTipback"].innerHTML = "<P CLASS='navtip'>"+NavBar[index][3]+"</P>";
document.all["NavTip"].style.left = NavBar[index][4];
document.all["NavTipback"].style.left = NavBar[index][4];
if (Quick==1) { ShowNavTip(); }
else { tID1 = setTimeout("ShowNavTip()",750); }
}
function ShowNavTip() {
Quick=1;
document.all["NavTip"].style.visibility = "visible";
document.all["NavTipback"].style.visibility = "visible";
tID2 = setTimeout("ClearNavTip()",3500);
}
function ClearNavTip() {
Quick=0;
document.all["NavTip"].style.visibility = "hidden";
document.all["NavTipback"].style.visibility = "hidden";
}
function NavOut(object,index) {
clearTimeout(tID1); clearTimeout(tID2);
if (Quick==1) { tID3 = setTimeout("Quick=0;",150); }
object.color = "#00A9DA";
object.background = NavBar[index][0].src;
object.style.color = "#00A9DA";
document.all["NavTip"].style.visibility = "hidden";
document.all["NavTipback"].style.visibility = "hidden";
}
function NavNavigate(location) {
document.location.href=location;
}
function OverviewMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="../boreal/overview.htm"; break;
case 2: document.location.href="../desert/overview.htm"; break;
case 3: document.location.href="../freshwater/overview.htm"; break;
case 4: document.location.href="../grassland/overview.htm"; break;
case 5: document.location.href="../marine/overview.htm"; break;
case 6: document.location.href="../mountain/overview.htm"; break;
case 7: document.location.href="../polar/overview.htm"; break;
case 8: document.location.href="../savanna/overview.htm"; break;
case 9: document.location.href="../scrubland/overview.htm"; break;
case 10: document.location.href="../temperate/overview.htm"; break;
case 11: document.location.href="../tropical/overview.htm"; break;
}
}
function TypesMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="../boreal/types.htm"; break;
case 2: document.location.href="../desert/types.htm"; break;
case 3: document.location.href="../freshwater/types.htm"; break;
case 4: document.location.href="../grassland/types.htm"; break;
case 5: document.location.href="../marine/types.htm"; break;
case 6: document.location.href="../mountain/types.htm"; break;
case 7: document.location.href="../polar/types.htm"; break;
case 8: document.location.href="../savanna/types.htm"; break;
case 9: document.location.href="../scrubland/types.htm"; break;
case 10: document.location.href="../temperate/types.htm"; break;
case 11: document.location.href="../tropical/types.htm"; break;
}
}
function OrganismsMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="../boreal/organisms.htm"; break;
case 2: document.location.href="../desert/organisms.htm"; break;
case 3: document.location.href="../freshwater/organisms.htm"; break;
case 4: document.location.href="../grassland/organisms.htm"; break;
case 5: document.location.href="../marine/organisms.htm"; break;
case 6: document.location.href="../mountain/organisms.htm"; break;
case 7: document.location.href="../polar/organisms.htm"; break;
case 8: document.location.href="../savanna/organisms.htm"; break;
case 9: document.location.href="../scrubland/organisms.htm"; break;
case 10: document.location.href="../temperate/organisms.htm"; break;
case 11: document.location.href="../tropical/organisms.htm"; break;
}
}
function InteractionsMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="../boreal/interactions.htm"; break;
case 2: document.location.href="../desert/interactions.htm"; break;
case 3: document.location.href="../freshwater/interactions.htm"; break;
case 4: document.location.href="../grassland/interactions.htm"; break;
case 5: document.location.href="../marine/interactions.htm"; break;
case 6: document.location.href="../mountain/interactions.htm"; break;
case 7: document.location.href="../polar/interactions.htm"; break;
case 8: document.location.href="../savanna/interactions.htm"; break;
case 9: document.location.href="../scrubland/interactions.htm"; break;
case 10: document.location.href="../temperate/interactions.htm"; break;
case 11: document.location.href="../tropical/interactions.htm"; break;
}
}
function DistributionMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="../boreal/distribution.htm"; break;
case 2: document.location.href="../desert/distribution.htm"; break;
case 3: document.location.href="../freshwater/distribution.htm"; break;
case 4: document.location.href="../grassland/distribution.htm"; break;
case 5: document.location.href="../marine/distribution.htm"; break;
case 6: document.location.href="../mountain/distribution.htm"; break;
case 7: document.location.href="../polar/distribution.htm"; break;
case 8: document.location.href="../savanna/distribution.htm"; break;
case 9: document.location.href="../scrubland/distribution.htm"; break;
case 10: document.location.href="../temperate/distribution.htm"; break;
case 11: document.location.href="../tropical/distribution.htm"; break;
}
}
function ArticlesMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="../boreal/articles.htm"; break;
case 2: document.location.href="../desert/articles.htm"; break;
case 3: document.location.href="../freshwater/articles.htm"; break;
case 4: document.location.href="../grassland/articles.htm"; break;
case 5: document.location.href="../marine/articles.htm"; break;
case 6: document.location.href="../mountain/articles.htm"; break;
case 7: document.location.href="../polar/articles.htm"; break;
case 8: document.location.href="../savanna/articles.htm"; break;
case 9: document.location.href="../scrubland/articles.htm"; break;
case 10: document.location.href="../temperate/articles.htm"; break;
case 11: document.location.href="../tropical/articles.htm"; break;
}
}
function HomeMenuSelect(f) {
switch (f.NavDrop.selectedIndex) {
case 1: document.location.href="boreal/overview.htm"; break;
case 2: document.location.href="desert/overview.htm"; break;
case 3: document.location.href="freshwater/overview.htm"; break;
case 4: document.location.href="grassland/overview.htm"; break;
case 5: document.location.href="marine/overview.htm"; break;
case 6: document.location.href="mountain/overview.htm"; break;
case 7: document.location.href="polar/overview.htm"; break;
case 8: document.location.href="savanna/overview.htm"; break;
case 9: document.location.href="scrubland/overview.htm"; break;
case 10: document.location.href="temperate/overview.htm"; break;
case 11: document.location.href="tropical/overview.htm"; break;
}
}
//-->